package cn.sxt.userscenter.service;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;

import cn.sxt.userscenter.common.util.PageInfoUtil;
import cn.sxt.userscenter.users.pojo.AAdmins;
import cn.sxt.userscenter.users.pojo.ARole;
import cn.sxt.userscenter.users.pojo.AUserExtends;
import cn.sxt.userscenter.users.pojo.AUsers;



public interface IUserService {
	
	
	/* ---- 管理员模块开始 ---- */
	//cha查询一条
	AAdmins findOneAdminsService(Map<String, Object> condMap);
	//保存一条
	JSONObject saveOneAdminsService(AAdmins admins);
	//gengxinyitiao更新一条
	JSONObject updateOneAdminsService(AAdmins admins);
	//删除一条
	JSONObject deleteOneAdminsService(AAdmins admins);
	//查询多条
	List<AAdmins> findCondListAdminsService(PageInfoUtil pageInfoUtil,Map<String, Object> condMap);
	
	/* ---- 管理员模块结束 ---- */
	/* ----角色模块开始 ---- */
	//chaxunyitiao查询一条
	ARole findOneRoleService(Map<String, Object> condMap);
	//gengxinyitiao更新一条
	JSONObject saveOneRoleService(ARole role);
	//删除一条
	JSONObject updateOneRoleService(ARole role);
	//查询多条
	JSONObject deleteOneRoleService(ARole role);
	//chaxunduotiaojuese查询多条角色
	List<ARole> findCondListRoleService(PageInfoUtil pageInfoUtil,Map<String, Object> condMap);
	/* ----角色模块结束 ---- */
	
	/*用户模块开始*/
		//cha查询一条
		AUsers findOneUsersService(Map<String, Object> condMap);
		//保存一条
		JSONObject saveOneUsersService(AUsers users);
		//gengxinyitiao更新一条
		JSONObject updateOneUsersService(AUsers users);
		//删除一条
		JSONObject deleteOneUsersService(AUsers users);
		//查询多条
		List<AUsers> findCondListUsersService(PageInfoUtil pageInfoUtil,Map<String, Object> condMap);
		
	/*用户模块结束*/
	
	
	
	/*用户扩展模块开始*/
		//cha查询一条
		AUserExtends findOneUsersExtendsService(Map<String, Object> condMap);
		//保存一条
		JSONObject saveOneUsersExtendsService(AUserExtends usersExtends);
		//gengxinyitiao更新一条
		JSONObject updateOneUsersExtendsService(AUserExtends usersExtends);
		//删除一条
		JSONObject deleteOneUsersExtendsService(AUserExtends usersExtends);
		//查询多条
		List<AUserExtends> findCondListUsersExtendsService(PageInfoUtil pageInfoUtil,Map<String, Object> condMap);
				
	/*用户扩展模块结束*/
	
}
